﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Purchase_AddEditPO : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (POSEntities db = new POSEntities())
        {
            var vendor = (from v in db.Customers
                              where v.BranchId == 1 && v.CustomerType=="Vendor" || v.CustomerType=="Both"
                              select v
                                ).ToList();
            ddlVendors.DataSource = vendor;
            ddlVendors.DataBind();
        }
    }
}